package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@ApiModel("库存信息")
@TableName("sku_stock")
@Accessors(chain = true)
public class SkuStock {
    /**
     * 库存id
     */
    @ApiModelProperty(value = "库存id")
    @TableId(value = "stock_id",type = IdType.AUTO)
    private Integer stockId;
    /**
     * SKU ID
     */
    @ApiModelProperty(value = "SKU ID")
    private int skuId;
    /**
     * 实际库存
     */
    @ApiModelProperty(value = "实际库存")
    private int actualStock;
    /**
     * 锁定库存
     */
    @ApiModelProperty(value = "锁定库存")
    private int lockStock;
    /**
     * 可售卖库存
     */
    @ApiModelProperty(value = "可售卖库存")
    private int stock;
}
